package com.rpc.core.constant;

import com.rpc.core.holder.transmit.Request;
import com.rpc.core.holder.transmit.Response;

public class BeatConstant {

    public static final int BEAT_INTERVAL = 20;
    public static final int BEAT_ID = 0;

    public static Request BEAT_PING;

    public static Response BEAT_PONG;

    static {
        BEAT_PING = new Request(BEAT_ID);
        BEAT_PING.setKey("beat");
        BEAT_PONG = new Response(BEAT_ID);
        BEAT_PONG.setInvokeSuccess(true);
    }
}
